package org.aepscolombia.platform.models.entity;
// Generated Jan 13, 2014 2:36:33 PM by Hibernate Tools 3.2.1.GA


import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

/**
 * MarketsReasons generated by hbm2java
 */
@Entity
@Table(name="markets_reasons"
    ,catalog="madr_bd10"
)
public class MarketsReasons  implements java.io.Serializable {


     private Integer idMarRea;
     private Boolean keyMarRea;
     private String reasonMarRea;
     private Set marketses = new HashSet(0);

    public MarketsReasons() {
    }

    public MarketsReasons(Boolean keyMarRea, String reasonMarRea, Set marketses) {
       this.keyMarRea = keyMarRea;
       this.reasonMarRea = reasonMarRea;
       this.marketses = marketses;
    }
   
     @Id @GeneratedValue(strategy=IDENTITY)
    
    @Column(name="id_mar_rea", unique=true, nullable=false)
    public Integer getIdMarRea() {
        return this.idMarRea;
    }
    
    public void setIdMarRea(Integer idMarRea) {
        this.idMarRea = idMarRea;
    }
    
    @Column(name="key_mar_rea")
    public Boolean getKeyMarRea() {
        return this.keyMarRea;
    }
    
    public void setKeyMarRea(Boolean keyMarRea) {
        this.keyMarRea = keyMarRea;
    }
    
    @Column(name="reason_mar_rea", length=45)
    public String getReasonMarRea() {
        return this.reasonMarRea;
    }
    
    public void setReasonMarRea(String reasonMarRea) {
        this.reasonMarRea = reasonMarRea;
    }
@OneToMany(cascade=CascadeType.ALL, fetch=FetchType.LAZY, mappedBy="marketsReasons")
    public Set getMarketses() {
        return this.marketses;
    }
    
    public void setMarketses(Set marketses) {
        this.marketses = marketses;
    }




}


